<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png">
    <HelloWorld msg="Welcome to Your Vue.js App"/>
  </div>
</template>

<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'
// import axios from 'axios';
import { getCurrentInstance } from 'vue';
export default {
  name: 'Home',
  components: {
    HelloWorld
  },
  setup(props) {
    let { proxy } = getCurrentInstance();
    // console.log(obj);
    proxy.$axios.get('https://api.it120.cc/small4/banner/list').then(res => {
       console.log(res);
    })
  }
}
</script>
